public class ReverseArray {
    public static void main(String[] args) {
        // 假设我们有一个字符数组
        char[] array = {'序', '顺', '符', '字', '组','数','倒','颠'};

        // 反转数组
        reverse(array);

        // 打印反转后的数组
        for (char c : array) {
            System.out.print(c + " ");
        }
    }

    public static void reverse(char[] array) {
        int length = array.length;
        for (int i = 0; i < length / 2; i++) {
            char temp = array[i];
            array[i] = array[length - i - 1];
            array[length - i - 1] = temp;
        }
    }
}